package com.ssy.lingxi.platform.template.service.repository;

import com.ssy.lingxi.platform.template.service.entity.collect.MemberProcessCollect;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface MemberProcessCollectRepository extends JpaRepository<MemberProcessCollect, Long> {

    void deleteByProcessIdAndMemberIdAndUserId(Long processId, Long memberId, Long userId);

    Page<MemberProcessCollect> findAllByMemberIdAndUserId(Long memberId, Long userId, Pageable page);

    Boolean existsByProcessIdAndMemberIdAndUserId(Long processId, Long memberId, Long userId);
}
